<!DOCTYPE html>
<html>
  <head>
    <title>customer-filters.html</title>
	
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
	<script type="text/javascript" src="../javascript/lib/jquery-1.9.1/jquery-1.9.1.min.js"></script>
	<script type="text/javascript">
		$(function(){
			//通过$.expr[":"]自定义选择器
			$.expr[":"].greenbg = function(elem){
				return $(elem).css("background-color") === "green";
			};
			var n = $(":greenbg").length;
			alert(n);
			alert($("#d").css("background-color"));
		})
	</script>
  </head>
  
  <body>
    <div id="d" style="width:20px; height:20px; background-color:green;">f</div>
    <div style="width:20px; height:20px; background-color:black;">a</div>
    <div style="width:20px; height:20px; background-color:blue;">x</div>
  </body>
</html>
